package com.hyt.it.ogt.pj.data.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import lombok.Getter;

/**
 * 配置信息
 *
 * @author liuqi
 * @date 2022-05-31
 */
@Component
@RefreshScope
@Getter
public class ConfigManager {

    @Value("${mq.direct}")
    private String direct;

    @Value("${mq.pushPjData.queue}")
    private String pushPjDataQueue;

    @Value("${mq.pushPjData.route}")
    private String pushPjDataRoute;
    
    @Value("${redis.datainvalidtime:3000}")
    private Integer redisDataInvalidTime;

}
